<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      body {
        display: flex;
      }
      .tomato {
        text-align: center;
        line-height: 80px;
        height: 80px;
        width: 300px;
        background-image: linear-gradient(to right, #f12b56 50px, transparent 150px);
        border-radius: 8px;
        /* transform: skewX(-30deg); */
        overflow: hidden;
      }
      .content {
        width: 250px;
        height: 80px;
        background-color: #f12b56;
        border-radius: 8px;
        transform: skewX(-30deg);
      }
      .tomato1 {
        text-align: center;
        line-height: 80px;
        height: 80px;
        width: 300px;
        background-image: linear-gradient(to right, #2b3145 50px, transparent 150px);
        border-radius: 8px;
        /* transform: skewX(-30deg); */
        overflow: hidden;
        transform: rotate(-180deg) translateX(96px);
      }
      .content1 {
        width: 250px;
        height: 80px;
        background-color: #2b3145;
        border-radius: 8px;
        transform: skewX(-30deg);
      }
    </style>
  </head>
  <body>
    <div class="tomato">
      <div class="content">
        <span>买入</span>
      </div>
    </div>
    <div class="tomato1">
      <div class="content1">
        <span>买入</span>
      </div>
    </div>
  </body>
</html>
